<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CryptoAuthLib: hal_i2c_bitbang.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CryptoAuthLib
   </div>
   <div id="projectbrief">Microchip CryptoAuthentication Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00344_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">hal_i2c_bitbang.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00344.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#ifndef HAL_I2C_BITBANG_H_</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#define HAL_I2C_BITBANG_H_</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#if     BOARD == AT88CK9000</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#       include &quot;i2c_bitbang_at88ck9000.h&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#if    (SAMD21 == 1)</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00479.html">i2c_bitbang_samd21.h</a>&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="a03537.html#gaa3e90779b37cd1b3a4d32321d9d8b772">   54</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="a03537.html#gaa3e90779b37cd1b3a4d32321d9d8b772">i2c_read_write_flag</a></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;{</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="a03537.html#ggaa3e90779b37cd1b3a4d32321d9d8b772adbf6337ed546b3c21fd08c397a346bb2">   56</a></span>&#160;    <a class="code" href="a03537.html#ggaa3e90779b37cd1b3a4d32321d9d8b772adbf6337ed546b3c21fd08c397a346bb2">I2C_WRITE</a> = (uint8_t)0x00,  </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="a03537.html#ggaa3e90779b37cd1b3a4d32321d9d8b772a30040082a257338fe25e5bd5136bc9a8">   57</a></span>&#160;    <a class="code" href="a03537.html#ggaa3e90779b37cd1b3a4d32321d9d8b772a30040082a257338fe25e5bd5136bc9a8">I2C_READ</a>  = (uint8_t)0x01   </div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;};</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="a03655.html">atcaI2Cmaster</a></div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;{</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="a03655.html#ada591700ce06dd3a6bb9722a6eba38c4">   65</a></span>&#160;    uint32_t <a class="code" href="a03655.html#ada591700ce06dd3a6bb9722a6eba38c4">pin_sda</a>;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="a03655.html#a01c1392fd38975adfd6c1c7849b3fa50">   66</a></span>&#160;    uint32_t <a class="code" href="a03655.html#a01c1392fd38975adfd6c1c7849b3fa50">pin_scl</a>;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    <span class="keywordtype">int</span>      <a class="code" href="a03655.html#ad72ba8c994f4d0e5ce354e17f7c427c0">ref_ct</a>;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="a03655.html#af5c011e6c2e8d49675f7029e8ec2c0a6">bus_index</a>;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;} <a class="code" href="a03537.html#gae8f36006f14bf6a9f4914bac69ed9f98">ATCAI2CMaster_t</a>;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* HAL_AT88CK900X_I2C_H_ */</span><span class="preprocessor"></span></div><div class="ttc" id="a03655_html_af5c011e6c2e8d49675f7029e8ec2c0a6"><div class="ttname"><a href="a03655.html#af5c011e6c2e8d49675f7029e8ec2c0a6">atcaI2Cmaster::bus_index</a></div><div class="ttdeci">int bus_index</div><div class="ttdoc">for conveniences during interface release phase </div><div class="ttdef"><b>Definition:</b> hal_at90usb1287_i2c_asf.h:53</div></div>
<div class="ttc" id="a03655_html_ad72ba8c994f4d0e5ce354e17f7c427c0"><div class="ttname"><a href="a03655.html#ad72ba8c994f4d0e5ce354e17f7c427c0">atcaI2Cmaster::ref_ct</a></div><div class="ttdeci">int ref_ct</div><div class="ttdef"><b>Definition:</b> hal_at90usb1287_i2c_asf.h:52</div></div>
<div class="ttc" id="a00479_html"><div class="ttname"><a href="a00479.html">i2c_bitbang_samd21.h</a></div><div class="ttdoc">definitions for bit-banged I2C </div></div>
<div class="ttc" id="a03537_html_ggaa3e90779b37cd1b3a4d32321d9d8b772a30040082a257338fe25e5bd5136bc9a8"><div class="ttname"><a href="a03537.html#ggaa3e90779b37cd1b3a4d32321d9d8b772a30040082a257338fe25e5bd5136bc9a8">I2C_READ</a></div><div class="ttdoc">read command flag </div><div class="ttdef"><b>Definition:</b> hal_i2c_bitbang.h:57</div></div>
<div class="ttc" id="a03537_html_gaa3e90779b37cd1b3a4d32321d9d8b772"><div class="ttname"><a href="a03537.html#gaa3e90779b37cd1b3a4d32321d9d8b772">i2c_read_write_flag</a></div><div class="ttdeci">i2c_read_write_flag</div><div class="ttdoc">This enumeration lists flags for I2C read or write addressing. </div><div class="ttdef"><b>Definition:</b> hal_i2c_bitbang.h:54</div></div>
<div class="ttc" id="a03655_html"><div class="ttname"><a href="a03655.html">atcaI2Cmaster</a></div><div class="ttdoc">this is the hal_data for ATCA HAL created using ASF </div><div class="ttdef"><b>Definition:</b> hal_at90usb1287_i2c_asf.h:49</div></div>
<div class="ttc" id="a03655_html_ada591700ce06dd3a6bb9722a6eba38c4"><div class="ttname"><a href="a03655.html#ada591700ce06dd3a6bb9722a6eba38c4">atcaI2Cmaster::pin_sda</a></div><div class="ttdeci">uint32_t pin_sda</div><div class="ttdef"><b>Definition:</b> hal_i2c_bitbang.h:65</div></div>
<div class="ttc" id="a03537_html_ggaa3e90779b37cd1b3a4d32321d9d8b772adbf6337ed546b3c21fd08c397a346bb2"><div class="ttname"><a href="a03537.html#ggaa3e90779b37cd1b3a4d32321d9d8b772adbf6337ed546b3c21fd08c397a346bb2">I2C_WRITE</a></div><div class="ttdoc">write command flag </div><div class="ttdef"><b>Definition:</b> hal_i2c_bitbang.h:56</div></div>
<div class="ttc" id="a03655_html_a01c1392fd38975adfd6c1c7849b3fa50"><div class="ttname"><a href="a03655.html#a01c1392fd38975adfd6c1c7849b3fa50">atcaI2Cmaster::pin_scl</a></div><div class="ttdeci">uint32_t pin_scl</div><div class="ttdef"><b>Definition:</b> hal_i2c_bitbang.h:66</div></div>
<div class="ttc" id="a03537_html_gae8f36006f14bf6a9f4914bac69ed9f98"><div class="ttname"><a href="a03537.html#gae8f36006f14bf6a9f4914bac69ed9f98">ATCAI2CMaster_t</a></div><div class="ttdeci">struct atcaI2Cmaster ATCAI2CMaster_t</div><div class="ttdoc">This is the hal_data for ATCA HAL. </div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li><li class="navelem"><a class="el" href="dir_e870e4dac26de7990352b1cb7547818f.html">hal</a></li><li class="navelem"><a class="el" href="a00344.html">hal_i2c_bitbang.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
